<!DOCTYPE html>
<html lang='en'>
<head>
  <meta charset='UTF-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <title></title>
  <script type='text/javascript' src='js/vue.js'></script>
</head>
<body>
  <div id='app'>
    <div>
      
    </div>
  </div>
  <script type='text/javascript'>
    var vm = new Vue({
      el: '#app',
      data: {
        aa: 1
      },
      methods: {
        bb(){
          console.log('================这是bb函数===============');
        }
      },
      beforeCreate() {
        console.log(this.aa);
        this.bb()
      },
      created() {
        console.log(this.aa);
        this.bb()
      },
      beforeMount() {
        
      },
      mounted() {
        
      },
    });
  </script>
</body>
</html>